import {Message} from "element-ui";
import router from "@/router";
import store from  "@/store";
// store.state.userInfo={access_token:`${uuid}`}
// /this.$store.state
// router.push('/sasasa').then((res) => {})
// this.$router.push({path:'/ASASSFDS'});
 import {mapGetters,mapMutations,mapState,mapActions} from "vuex";
export const Mixin_Login = {
  data() {
    return {
      ...mapState(['userInfo']),
      sharedData: '公共数据',
    };
  },
  methods: {
    ...mapActions(['getNavigation']),
    ...mapMutations(['setUserInfo','setUserInfoObj']),
    sharedMethod() {
      console.log('公共方法');
    },
  },
  // el还没有完全被这个挂在完毕的时候
  created() {

  },
  mounted() {
    // 数据初始化设置
    // store.state.userInfo = {userInfo: {username: 'username', password: 'password', access_token: '312425435asfdsff'}};
    // this.setUserInfoObj({ruleType:'ENGINEER','openId':'1231423424324',phone:'15717981940'});
  },
};
